###FIRST RUN Study 2 Data Code.R###

####APPENDIX TABLE 8####
##MICHIGAN
#EMERGENCY MG (COLUMN 1)
glm(PROP1_SQ ~ PROP1_TREAT + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + INFORMED1 + IMPORT1 + BLACK + HISP + WHITE, data=study2_mi, family=binomial(link="logit"))

#COLLECTIVE BARGAINING (COLUMN 2)
glm(PROP2_SQ ~ PROP2_TREAT + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + INFORMED2 + IMPORT2 + BLACK + HISP + WHITE, data=study2_mi, family=binomial(link="logit"))

#ENERGY (COLUMN 3)
glm(PROP3_SQ ~ PROP3_TREAT + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + INFORMED3 + IMPORT3 + BLACK + HISP + WHITE, data=study2_mi, family=binomial(link="logit"))

#IN-HOME CARE (COLUMN 4)
glm(PROP4_SQ ~ PROP4_TREAT + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + INFORMED4 + IMPORT4 + BLACK + HISP + WHITE, data=study2_mi, family=binomial(link="logit"))

#TAXES (COLUMN 5)
glm(PROP5_SQ ~ PROP5_TREAT + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + INFORMED5 + IMPORT5 + BLACK + HISP + WHITE, data=study2_mi, family=binomial(link="logit"))

#BRIDGE (COLUMN 6)
glm(PROP6_SQ ~ PROP6_TREAT + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + INFORMED6 + IMPORT6 + BLACK + HISP + WHITE, data=study2_mi, family=binomial(link="logit"))

##CALIFORNIA
#TAXES (COLUMN 7)
glm(PROP30_SQ ~ PROP30_TREAT + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + INFORMED30 + IMPORT30 + BLACK + HISP + WHITE, data=study2_ca, family=binomial(link="logit"))

#DEATH PENALTY (COLUMN 8)
glm(PROP34_SQ ~ PROP34_TREAT + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + INFORMED34 + IMPORT34 + BLACK + HISP + WHITE, data=study2_ca, family=binomial(link="logit"))
########################